import { request } from '@/utils/request';
import CRUD from '@/utils/request/CRUD';

export interface JobLogVO {
  id: number;
  jobId: number;
  handlerName: string;
  handlerParam: string;
  cronExpression: string;
  executeIndex: number;
  beginTime: Date;
  endTime: Date;
  duration: number;
  status: number;
  result: string;
  createTime: Date;
}

// 定时任务日志 CRUD
export const jobLogCRUD = CRUD('/infra/job-log');


// 清空调度日志
export function cleanJobLog() {
  return request.delete({
    url: '/infra/job-log/clean',
  });
} 